
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8"/>
  <meta name="viewport" content="width=device-width, initial-scale=1"/>
  <title>企业管理</title>
  <!-- Font Awesome -->
  <link rel="stylesheet" href="../plugins/fontawesome-free/css/all.min.css"/>
  <!-- Ionicons -->
  <link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css"/>
  <!-- Tempusdominus Bootstrap 4 -->
  <link rel="stylesheet" href="../plugins/tempusdominus-bootstrap-4/css/tempusdominus-bootstrap-4.min.css"/>
  <!-- iCheck -->
  <link rel="stylesheet" href="../plugins/icheck-bootstrap/icheck-bootstrap.min.css"/>
  <!-- Theme style -->
  <link rel="stylesheet" href="../dist/css/adminlte.min.css"/>
  <!-- overlayScrollbars -->
  <link rel="stylesheet" href="../plugins/overlayScrollbars/css/OverlayScrollbars.min.css"/>
  <!-- Daterange picker -->
  <link rel="stylesheet" href="../plugins/daterangepicker/daterangepicker.css"/>
  
  <!-- jQuery -->
<script src="../plugins/jquery/jquery.min.js"></script>
<!-- jQuery UI 1.11.4 -->
<script src="../plugins/jquery-ui/jquery-ui.min.js"></script>
<!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
<script>
  $.widget.bridge('uibutton', $.ui.button)
</script>
<!-- Bootstrap 4 -->
<script src="../plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Tempusdominus Bootstrap 4 -->
<script src="../plugins/tempusdominus-bootstrap-4/js/tempusdominus-bootstrap-4.min.js"></script>
<!-- Summernote -->
<script src="../plugins/summernote/summernote-bs4.min.js"></script>
<!-- overlayScrollbars -->
<script src="../plugins/overlayScrollbars/js/jquery.overlayScrollbars.min.js"></script>
<!-- AdminLTE App -->
<script src="../dist/js/adminlte.js"></script>
<!-- AdminLTE dashboard demo (This is only for demo purposes) -->
<script src="../dist/js/pages/dashboard.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="../dist/js/demo.js"></script>
    <!--导入布局js，共享header和footer-->
    <script type="text/javascript" src="js/include.js"></script>
<script>
        function dele(btn){
        	 if(confirm("确定要删除吗？")){
        	var a=btn.value;
			$.ajax({
				url:"delebyid",
				type:"post",
				data:{"id":a},
				success:function(student){
					alert("发生异常");
					//window.location.href="/seletutor";					
				},
				error:function(){
					alert("发生异常");
				}
			})
       		 }
         }
        </script>
</head>
<body class="hold-transition sidebar-mini layout-fixed">
<div class="wrapper">

  <!-- Navbar -->
  <nav class="main-header navbar navbar-expand navbar-white navbar-light">
    <!-- Left navbar links -->
    <ul class="navbar-nav">
      <li class="nav-item">
        <a class="nav-link" data-widget="pushmenu" href="#" role="button"><i class="fas fa-bars"></i></a>
      </li>
    </ul>
				<h1 style="font-size:24px;position: relative;top: 3px;left:6px;">
					原料管理
				</h1>
    <!-- 导航搜索 FORM -->
    <form class="form-inline ml-3" style="position: relative;left:10px;">
      <div class="input-group input-group-sm">
        <input class="form-control form-control-navbar" type="search" placeholder="导航搜索 " aria-label="Search"/>
        <div class="input-group-append">
          <button class="btn btn-navbar" type="submit">
            <i class="fas fa-search"></i>
          </button>
        </div>
      </div>
    </form>
	
	
	
	
	
	
	
    <!-- Right navbar links -->
    <ul class="navbar-nav ml-auto">
      <!-- Messages Dropdown Menu -->
      <li class="nav-item dropdown">
        <a class="nav-link" data-toggle="dropdown" href="#">
          <i class="far fa-comments"></i>
          <span class="badge badge-danger navbar-badge">3</span>
        </a>
        <div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
          <a href="#" class="dropdown-item">
            <!-- Message Start -->
            <div class="media">
              <img src="dist/img/user1-128x128.jpg" alt="User Avatar" class="img-size-50 mr-3 img-circle"/>
              <div class="media-body">
                <h3 class="dropdown-item-title">
                  Brad Diesel
                  <span class="float-right text-sm text-danger"><i class="fas fa-star"></i></span>
                </h3>
                <p class="text-sm">Call me whenever you can...</p>
                <p class="text-sm text-muted"><i class="far fa-clock mr-1"></i> 4 Hours Ago</p>
              </div>
            </div>
            <!-- Message End -->
          </a>
          <div class="dropdown-divider"></div>
          <a href="#" class="dropdown-item">
            <!-- Message Start -->
            <div class="media">
              <img src="dist/img/user8-128x128.jpg" alt="User Avatar" class="img-size-50 img-circle mr-3"/>
              <div class="media-body">
                <h3 class="dropdown-item-title">
                  John Pierce
                  <span class="float-right text-sm text-muted"><i class="fas fa-star"></i></span>
                </h3>
                <p class="text-sm">I got your message bro</p>
                <p class="text-sm text-muted"><i class="far fa-clock mr-1"></i> 4 Hours Ago</p>
              </div>
            </div>
            <!-- Message End -->
          </a>
          <div class="dropdown-divider"></div>
          <a href="#" class="dropdown-item">
            <!-- Message Start -->
            <div class="media">
              <img src="dist/img/user3-128x128.jpg" alt="User Avatar" class="img-size-50 img-circle mr-3"/>
              <div class="media-body">
                <h3 class="dropdown-item-title">
                  Nora Silvester
                  <span class="float-right text-sm text-warning"><i class="fas fa-star"></i></span>
                </h3>
                <p class="text-sm">The subject goes here</p>
                <p class="text-sm text-muted"><i class="far fa-clock mr-1"></i> 4 Hours Ago</p>
              </div>
            </div>
            <!-- Message End -->
          </a>
          <div class="dropdown-divider"></div>
          <a href="#" class="dropdown-item dropdown-footer">See All Messages</a>
        </div>
      </li>
      <!-- Notifications Dropdown Menu -->
      <li class="nav-item dropdown">
        <a class="nav-link" data-toggle="dropdown" href="#">
          <i class="far fa-bell"></i>
          <span class="badge badge-warning navbar-badge">15</span>
        </a>
        <div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
          <span class="dropdown-item dropdown-header">15 Notifications</span>
          <div class="dropdown-divider"></div>
          <a href="#" class="dropdown-item">
            <i class="fas fa-envelope mr-2"></i> 4 new messages
            <span class="float-right text-muted text-sm">3 mins</span>
          </a>
          <div class="dropdown-divider"></div>
          <a href="#" class="dropdown-item">
            <i class="fas fa-users mr-2"></i> 8 friend requests
            <span class="float-right text-muted text-sm">12 hours</span>
          </a>
          <div class="dropdown-divider"></div>
          <a href="#" class="dropdown-item">
            <i class="fas fa-file mr-2"></i> 3 new reports
            <span class="float-right text-muted text-sm">2 days</span>
          </a>
          <div class="dropdown-divider"></div>
          <a href="#" class="dropdown-item dropdown-footer">See All Notifications</a>
        </div>
      </li>
      <li class="nav-item">
        <a class="nav-link" data-widget="control-sidebar" data-slide="true" href="#" role="button">
          <i class="fas fa-th-large"></i>
        </a>
      </li>
    </ul>
  </nav>
  <!-- /.navbar -->

  <!-- Main Sidebar Container -->
  <aside class="main-sidebar sidebar-dark-primary elevation-4">
    <!-- Brand Logo -->
    <a href="index3.html" class="brand-link">
      <img src="../image/AdminLTELogo.png" alt="AdminLTE Logo" class="brand-image img-circle elevation-3" style="opacity: .8"/>
      <span class="brand-text font-weight-light">企业管理系统</span>
    </a>

    <!-- Sidebar -->
    <div class="sidebar">
      <!-- Sidebar user panel (optional) -->
      <div class="user-panel mt-3 pb-3 mb-3 d-flex">
        <div class="image">
          <img src="dist/img/user2-160x160.jpg" class="img-circle elevation-2" alt=""/>
        </div>
        <div class="info">
          <a href="#" class="d-block" th:text="${username}"></a><a href="outlogin" class="d-block">退出登录</a>
        </div>
      </div>
      <!-- Sidebar Menu -->
      <nav class="mt-2">
        <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
          <!-- Add icons to the links using the .nav-icon class
               with font-awesome or any other icon font library -->
          <li class="nav-item has-treeview menu-open">
            <a href="#" class="nav-link active">
              <p style="font-size:18px;">
                	原料与库存
                <i class="fas fa-angle-left right"></i>
              </p>
            </a>
            <ul class="nav nav-treeview" style="background-color: #004060">
              <li class="nav-item">
                <a href="/selestudent" class="nav-link active">
                  <i class="far fa-circle nav-icon"></i>
                  <p>原料制单</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="/Sp/selemate" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>原料管理</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="/selepunish" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>库存制单</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="/selepunish" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>库存管理</p>
                </a>
              </li>
            </ul>
          </li>
          <li class="nav-item has-treeview menu-open">
            <a href="#" class="nav-link">
              <p style="font-size:18px;">
                	货单与货款
                <i class="fas fa-angle-left right"></i>
              </p>
            </a>
            <ul class="nav nav-treeview" style="background-color: #004060">
              <li class="nav-item">
                <a href="/selestudent" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>货单制单</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="/seletutor" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>货单管理</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="/seletask" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>货款制单</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="/seleteapunish" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>货款管理</p>
                </a>
              </li>
            </ul>
          </li>
          <li class="nav-item has-treeview">
            <a href="#" class="nav-link">
              <p style="font-size:18px;">
                	资金系统
                <i class="fas fa-angle-left right"></i>
              </p>
            </a>
            <ul class="nav nav-treeview" style="background-color: #004060">
              <li class="nav-item">
                <a href="/selereport" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>成绩管理</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="/reportview" class="nav-link active">
                  <i class="far fa-circle nav-icon"></i>
                  <p>成绩查询</p>
                </a>
              </li>
            </ul>
          </li>
          
          <li class="nav-item has-treeview">
            <a href="#" class="nav-link">
              <p style="font-size:18px;">
                	用户管理
                <i class="fas fa-angle-left right"></i>
              </p>
            </a>
            <ul class="nav nav-treeview" style="background-color: #004060">
              <li class="nav-item">
                <a href="/selesection" class="nav-link active">
                  <i class="far fa-circle nav-icon"></i>
                  <p>部门管理</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="/conftimetable" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>班级管理</p>
                </a>
              </li>
            </ul>
          </li>
          
        </ul>
      </nav>
      <!-- /.sidebar-menu -->
    </div>
    <!-- /.sidebar -->
  </aside>
  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <div class="content-header">
      <div class="container-fluid">
        <div class="row mb-2">
		
            
            <div class="page-header">
				<!-- <a id="modal-620159" href="#modal-container-620159" role="button" class="btn" data-toggle="modal">学籍注册</a> -->
				<button style="width: 85px;height: 25px; border: 0px;border-radius: 5px;background-color: green;color: white;" onclick="deleall()">批量删除</button>
				
			</div>
			<!-- 名称 FORM -->
		    <form class="form-inline ml-3" action="/selestudentbystuid" method="post">
		      <div class="input-group input-group-sm">
		        <input class="form-control" name="stuid" type="search" placeholder="名称" aria-label="Search"/>
		        <div class="input-group-append">
		          <button class="btn btn-navbar" type="submit">
		            <i class="fas fa-search"></i>
		          </button>
		        </div>
		      </div>
		    </form>
		    <!-- 类型 FORM -->
		    <form class="form-inline ml-3" action="/selestudentbyname" method="post">
		      <div class="input-group input-group-sm">
		        <input class="form-control" name="name" type="search" placeholder="类型" aria-label="Search"/>
		        <div class="input-group-append">
		          <button class="btn btn-navbar" type="submit">
		            <i class="fas fa-search"></i>
		          </button>
		        </div>
		      </div>
		    </form>
		    <!-- 型号 FORM -->
		    <form class="form-inline ml-3" action="/selestudentbyic" method="post">
		      <div class="input-group input-group-sm">
		        <input class="form-control" name="ic" type="search" placeholder="型号" aria-label="Search"/>
		        <div class="input-group-append">
		          <button class="btn btn-navbar" type="submit">
		            <i class="fas fa-search"></i>
		          </button>
		        </div>
		      </div>
		    </form>
			<button id="bt" style="position: relative;top: 6px;left:10px;" onclick="upload()">下载导入模板</button>
			<style type="text/css">
			#bt {
				width: 135px;
				height: 25px;
				border: 0px;
				border-radius: 5px;
				background-color: green;
				color: white;
			}
			</style>
			<button id="bt" style="position: relative;top: 6px;left:20px;" onclick="info()">exc批量导入</button>
			<form name="myfff" action="/infoExcStudent" style="display: none;" method="post" enctype="multipart/form-data" role="form">
					<input id="fileToUpload4" type="file" name="file" onchange="addexc()"/>
			</form>
			<button id="bt" style="position: relative;top: 6px;left:30px;" onclick="exc()">导出exc</button>
			
			
			
			<table class="table table-bordered table-hover" style="position: relative;top: 15px;left:15px;">
				<thead>
					<tr class="warning">
					<th width="5%"><input type="checkbox" id="checkAll"/></th>
						<th>
							名称
						</th>
						<th>
							类型
						</th>
						<th>
							型号
						</th>
						<th>
							数量
						</th>
						<th>
							单位
						</th>
						<th>
							单价
						</th>
						<th>
							合计
						</th>
						<th>
							时间
						</th>
						<th>
							制单人员
						</th>
						<th>
							操作
						</th>
					</tr>
				</thead>
				<tbody>
					<tr class="success" th:each="s:${name}">
					<td><input type="checkbox" th:value="${s.id }" name="box" id="box_"/></td>
						<td th:text="${s.name}"></td>
						<td th:text="${s.type}"></td>
						<td th:text="${s.modele}"></td>
						<td th:text="${s.quantite}"></td>
						<td th:text="${s.unite}"></td>
						<td th:text="${s.money}"></td>
						<td th:text="${s.total}"></td>
						<td th:text="${s.time}"></td>
						<td th:text="${s.saisie}"></td>
						<td ><button style="width: 60px;height: 25px; border: 0px;border-radius: 5px;background-color: #0271CD;color: white;" th:value="${s.id}" onclick="up(this)">修改</button>|
						<button style="width: 60px;height: 25px; border: 0px;border-radius: 5px;background-color: #FF0000;color: white;" th:value="${s.id}" onclick="dele(this)">删除</button></td>
					</tr>
					
				</tbody>
			</table>
			
			          <ul id="nav">
						<li><a href="/selestudentlast">&laquo;</a></li>
						<li><a href="/">1</a></li>
						<li><a href="#">2</a></li>
						<li><a href="#">3</a></li>
						<li><a href="">4</a></li>
						<li><a href="http://mb5u.com">5</a></li>
						<li><a href="#">6</a></li>
						<li><a href="/">7</a></li>
						<li><a href="/">8</a></li>
						<li><a href="/selestudentnext">&raquo;</a></li>
						</ul>
			<div>
				<form action="/selestudentgopage" class="form-inline ml-3">
			      <div class="input-group input-group-sm">
			        	<input class="form-control" name="page" th:value="${pagenum}" style="width: 20%" type="search" placeholder="当前页" aria-label="Search"/>
			        <div class="input-group-append">
			          <button class="btn btn-navbar" type="submit">
			            	跳转 »
			          </button>
			          
			        </div>
			      </div>
			      
			      
			          <text onclick="one()" class="btn btn-navbar">
			            	« 首页 
			          </text>
				          <select id="selects" onchange="sel(this)">
							<option ></option>
							<option value="5">5条每页</option>
							<option value="10">10条每页</option>
							<option value="15">15条每页</option>
							</select>
			          <text onclick="end()" class="btn btn-navbar">
			            	尾页 »
			          </text>
			    </form>
			</div>
<style type="text/css">  
#nav {
list-style: none;
display: inline;
}
#nav li {
display: inline;
margin-right: 5px;
float: left;
height: 40px;
width: 40px;
}
#nav a {
color: #399;
text-decoration: none;
display: block;
font-size: 22px;
font-family: Geneva, Arial, Helvetica, sans-serif;
border: 1px solid #999;
width: 40px;
height: 40px;
line-height: 40px;
text-align: center;
}
#nav li a:hover {
font-size: 30px;
line-height: 30px;
height: 40px;
width: 40px;
position: absolute;
z-index: 10;
margin: -1px 0 0 -1px;
font-weight: bold;
color: #CC66FF;
border: 1px dotted #666666;
background: #EEE;
}
</style>
			<script>
			function upload() {
				window.location.href="/downloadStudent";
			}
			function info() {
				document.getElementById("fileToUpload4").click();
			}
			function exc() {
				window.location.href="/excstudent";
			}
			function addexc()
			{
				 var formdata=new FormData(myfff);
		        //formdata.append("file",file);
		        $.ajax({
					url:"infoExcStudent",
					type:"post",
					data:formdata,
					async: false,  
			        cache: false,  
			        contentType: false,  
			        processData: false,
			        success:function(s){
						alert(s);
						window.location.href="/selestudent";
					},
					error:function(){
						alert("导入失败");
					}
				})
			}
			function deleall(){
				var count=0;
				var b=new Array(10);
				try{
					for(var n=0;true;n++){
						if($('input[type=checkbox]').get(n+1).checked){
							b[n]=$('input[type=checkbox]').get(n+1).value; count++;}
						if(n==20)break;
					}
				/* if($('input[type=checkbox]').get(1).checked){
					b[0]=$('input[type=checkbox]').get(1).value; count++;}
				if($('input[type=checkbox]').get(2).checked){
					b[1]=$('input[type=checkbox]').get(2).value;count++;}
				if($('input[type=checkbox]').get(3).checked){
					b[2]=$('input[type=checkbox]').get(3).value;count++;} */
				}catch (e) {
				}
				 if(confirm("确定要删除"+count+"项吗？")){
					 //alert($("input[id^='box_']").value);
			  		window.location.href="/deleallstudent?b="+b;
					 }
				
			}
			$(function() {
				   $("#checkAll").click(function(){
				       $("input[id^='box_']").attr("checked",this.checked);
				   });
				})
			function yidong(n) {
				var a=n.value;
				$.ajax({
					url:"selestudentbyid",
					type:"post",
					data:{"id":a},
					dataType:"",
					success:function(student){
						change.stuid.value=student.stuid;
						change.ic.value=student.ic;
						change.name.value=student.name;
						document.getElementById("modal-620150").click();
							//console.log(userId);					
					},
					error:function(){
						alert("发生异常");
					}
				})
					}
			function up(btn){
				var a=btn.value;
				$.ajax({
					url:"selematerialbyid",
					type:"post",
					data:{"id":a},
					dataType:"",
					success:function(v){
						myf.name.value=v.name;
						myf.type.value=v.type;
						myf.modele.value=v.modele;
						myf.quantite.value=v.quantite;
						myf.unite.value=v.unite;
						myf.money.value=v.money;
						myf.total.value=v.total;
						myf.time.value=v.time;
						myf.saisie.value=v.saisie;
						myf.id.value=a;
						document.getElementById("modal-620620").click();
							//console.log(userId);					
					},
					error:function(){
						alert("发生异常");
					}
				})
			}
			function sel(n) {
				var a=n.value;
				window.location.href="/selestudentpagenow?pagenow="+a;
					}
			function one() {
				window.location.href="/selestudentgopage?page=1";
			}
			function end() {
				window.location.href="/selestudentgopage?page=1000";
			}
			function addim(n)
			{
				 var formdata=new FormData(myform);
		        //formdata.append("file",file);
		        $.ajax({
					url:"uploadimg",
					type:"post",
					data:formdata,
					async: false,  
			        cache: false,  
			        contentType: false,  
			        processData: false,
			        success:function(s){
						document.getElementById("addimg").src=s;
						document.getElementById("addimgtext").value=s;
						alert(s);
						alert("上传成功");
					},
					error:function(){
						$.ajax({
							url:"http://localhost:7272/upload",
							type:"post",
							data:formdata,
							async: false,  
					        cache: false,  
					        contentType: false,
					        processData: false,
							success:function(s){
								document.getElementById("addimg").src=s;
								document.getElementById("addimgtext").value=s;
								alert("上传成功");
							},
							error:function(){
								alert("上传文件发生异常!!");
							}
						})
					}
				})
			}
			function upim(n)
			{
				 var formdata=new FormData(myform2);
		        //formdata.append("file",file);
		        $.ajax({
					url:"uploadimg",
					type:"post",
					data:formdata,
					async: false,  
			        cache: false,  
			        contentType: false,  
			        processData: false,
			        success:function(s){
						document.getElementById("upimg").src=s;
						document.getElementById("imgtext").value=s;
						alert(s);
						alert("上传成功");
					},
					error:function(){
						$.ajax({
							url:"http://localhost:7272/upload",
							type:"post",
							data:formdata,
							async: false,  
					        cache: false,  
					        contentType: false,
					        processData: false,
							success:function(s){
								document.getElementById("upimg").src=s;
								alert(s);
								document.getElementById("imgtext").value=s;
								alert("上传成功");
							},
							error:function(){
								alert("上传文件发生异常!!");
							}
						})
					}
				})
			}
			 function fileSelect(n) {
				 if(n==2||n.equals("2"))
			        document.getElementById("fileToUpload2").click();
			    }
			 function fileSelect1() {
				 	document.getElementById("fileToUpload").click();
			    }
			</script>
			<a id="modal-620620" href="#modal-container-620620" role="button" class="btn" data-toggle="modal"></a>
			<a id="modal-620150" href="#modal-container-620150" role="button" class="btn" data-toggle="modal"></a>
			<div class="modal fade bs-example-modal-lg" id="modal-container-620159" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
				<div class="modal-dialog modal-lg">
					<div class="modal-content">
						<div class="modal-header">
							 
							<h4 class="modal-title" id="myModalLabel">
								添加
							</h4>
							<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
						</div>
						<div class="modal-body"><!-- 内容 -->
							<form action="/addstudent" method="post" role="form">
								<!-- 头像处理 -->
								<div style="position: absolute;top: 25px;right: -580px;" class="col-md-12 column">
									<img alt="140x140" id="addimg" style="width: 110px;height: 150px;" src="j/xueimg/t2.jpg" class="img-thumbnail" onclick="fileSelect1()"/><br/>
									<a href="javascript:fileSelect1()">头像上传</a>
								</div>
								<input type="hidden" id="addimgtext" name="img"/>
								<!-- 头像处理结束 -->
								<div class="form-group">
									 <label for="firstname" class="col-sm-2 control-label">学号</label>
    								<div class="col-sm-8"><input type="text" name="stuid" class="form-control" onBlur="Vfstuid(this)" id="max"/>
    								<a href="javascript:stuidmax()">自动生成</a>
								</div>
								</div>
								<div class="form-group">
									 <label for="firstname" class="col-sm-2 control-label">名字</label>
    								<div class="col-sm-8"><input type="text" name="name" class="form-control"/>
								</div>
								</div>
								
								<div class="form-group">
									 <label>班级</label><input type="text" list="sexlist" name="c" class="form-control"/>
										<datalist id="sexlist">
									 		<div th:each="s:${set}">
												<option th:text="${s}" th:value="${s}"></option>
											</div>
											</datalist>
								</div>
								<div class="form-group">
									 <label>身份证</label><input type="text" name="ic" class="form-control"/>
								</div>
								<div class="form-group">
									 <label>籍贯</label><input type="text" name="ji" class="form-control"/>
								</div>
								<div class="form-group">
									 <label>前置学历</label><input type="text" name="xueli" class="form-control"/>
								</div>
								<div class="form-group">
									 <label>家庭住址</label><input type="text" name="address" class="form-control"/>
								</div>
								<div class="form-group">
									 <label>学籍状态</label><input type="text" name="recomm" class="form-control"/>
								</div>
								<button style="width: 60px;height: 45px; border: 0px;border-radius: 5px;background-color: #0271CD;color: white;" type="submit" class="btn btn-default">提交</button>
							</form>
							<!-- 隐藏表单 -->
							<form name="myform" id="fil" style="display: none;" action="/uploadimg" method="post" enctype="multipart/form-data">
									<input type="file" name="file" id="fileToUpload" onchange="addim(1)"/>
							</form>
						</div>
						<div class="modal-footer">
							 <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button> 
						</div>
					</div>
				</div>
			</div>
			<!-- 编辑模态框************************************************************************** -->
			<div class="modal fade bs-example-modal-lg" id="modal-container-620620" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
				<div class="modal-dialog modal-lg">
					<div class="modal-content">
						<div class="modal-header">
							 
							<h4 class="modal-title" id="myModalLabel">
								修改
							</h4>
							<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
						</div>
						<div class="modal-body"><!-- 内容 -->
							<form name="myf" action="/upstudent" method="post" role="form">
								<div class="form-group">
									 <label>名称</label>
    								<input type="text" name="name" class="form-control"/>
								</div>
								<div class="form-group">
									 <label>类型</label>
    								<input type="text" name="type" class="form-control"/>
								</div>
								<div class="form-group">
									 <label>型号</label><input type="text" list="sexlist" name="modele" class="form-control"/>
								</div>
								<div class="form-group">
									 <label>数量</label><input type="text" name="quantite" class="form-control"/>
								</div>
									 <input type="hidden" name="id" class="form-control" id="id" />
								<div class="form-group">
									 <label>单位</label><input type="text" list="sexlist" name="unite" class="form-control"/>
									 <datalist id="sexlist">
									 		<div>
												<option text="包" value="包"></option>
											</div>
											</datalist>
								</div>
								<div class="form-group">
									 <label>单价</label><input type="text" name="money" class="form-control"/>
								</div>
								<div class="form-group">
									 <label>合计</label><input type="text" name="total" class="form-control"/>
								</div>
								<div class="form-group">
									 <label>时间</label><input type="text" name="time" class="form-control"/>
								</div>
								<div class="form-group">
									 <label>制单人员</label><input type="text" name="saisie" class="form-control"/>
								</div>
								<button style="width: 60px;height: 45px; border: 0px;border-radius: 5px;background-color: #0271CD;color: white;" type="submit" class="btn btn-default">提交</button>
							</form>
						</div>
						<!-- 隐藏表单 -->
						<form name="myform2" id="fil" style="display: none;" action="/uploadimg" method="post" enctype="multipart/form-data">
								<input type="file" name="file" id="fileToUpload2" onchange="upim(this)"/>
						</form>
						<div class="modal-footer">
							 <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
						</div>
					</div>
				</div>
			</div>
			</div>
			</div>
        </div><!-- /.row -->
      </div><!-- /.container-fluid -->
    </div>
    <!-- /.content-header -->
</body>
</html>